]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Save pages when folder apps change
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 24 Sep 2020 17:16:48 +0000 (14:16 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 5 Oct 2020 12:06:48 +0000 (12:06 +0000)
After dragging an icon to inside a folder, we do not save the grid layout,
leaving the icon's position stored when it actually isn't there anymore.

Fix that by saving pages whenever folder apps change.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1447

js/ui/appDisplay.js

index 8979d7e57c73525175e046b0beb89fb380cccfa6..840d4fd3e0699372fc2a2868f39b8eccf388a930 100644 (file)
@@ -1097,7 +1097,10 @@ class AppDisplay extends BaseAppView {
             let icon = this._items.get(id);
             if (!icon) {
                 icon = new FolderIcon(id, path, this);
-                icon.connect('apps-changed', this._redisplay.bind(this));
+                icon.connect('apps-changed', () => {
+                    this._redisplay();
+                    this._savePages();
+                });
             }
 
             // Don't try to display empty folders